package com.netease.b.b.g;

import com.netease.b.b.e.d;
import com.netease.b.b.e.f;
import com.netease.pris.a.i;
import org.json.JSONException;
import org.json.JSONObject;

public class c extends com.netease.b.b.e.a
{
  public static final String a = "4161824071";
  public static final String b = "f4736bfcd787da4dfd225be6b10c0cd5";
  private static final String d = "http://api.t.sina.com.cn";
  private static c e;

  public c()
  {
    super("4161824071", "f4736bfcd787da4dfd225be6b10c0cd5");
  }

  public static c a()
  {
    if (e == null)
      e = new c();
    return e;
  }

  private String a(int paramInt, String paramString1, String paramString2)
  {
    try
    {
      int i = Integer.valueOf(paramString1).intValue();
      paramInt = i;
      switch (paramInt)
      {
      default:
        label12: if (!i.e(paramString2))
          break;
        paramString2 = "未知错误";
      case 304:
      case 400:
      case 40028:
      case 40033:
      case 40031:
      case 40036:
      case 40034:
      case 40038:
      case 40037:
      case 40015:
      case 40017:
      case 40019:
      case 40021:
      case 40022:
      case 40007:
      case 40009:
      case 40011:
      case 40012:
      case 40016:
      case 40018:
      case 40020:
      case 40023:
      case 40024:
      case 40025:
      case 40026:
      case 40045:
      case 40008:
      case 40001:
      case 40002:
      case 40010:
      case 40013:
      case 40039:
      case 40040:
      case 40041:
      case 40042:
      case 40043:
      case 40044:
      case 40029:
      case 40027:
      case 40032:
      case 40030:
      case 40035:
      case 40053:
      case 40054:
      case 40059:
      case 40060:
      case 40061:
      case 40062:
      case 40063:
      case 40064:
      case 40065:
      case 40066:
      case 40067:
      case 40068:
      case 40069:
      case 40070:
      case 40071:
      case 40072:
      case 40073:
      case 40074:
      case 40075:
      case 40076:
      case 40082:
      case 40083:
      case 40084:
      case 401:
      case 40101:
      case 40102:
      case 40103:
      case 40104:
      case 40105:
      case 40106:
      case 40107:
      case 40108:
      case 40109:
      case 40110:
      case 40111:
      case 40112:
      case 40113:
      case 40114:
      case 402:
      case 403:
      case 40301:
      case 40302:
      case 40303:
      case 40304:
      case 40305:
      case 40306:
      case 40307:
      case 40308:
      case 40309:
      case 40314:
      case 404:
      case 500:
      case 502:
      case 503:
      }
      while (true)
      {
        return paramString2;
        paramString2 = "没有数据返回";
        continue;
        paramString2 = "请求数据不合法，或者超过请求频率限制";
        continue;
        paramString2 = "内部接口错误";
        continue;
        paramString2 = "source_user或者target_user用户不存在 ";
        continue;
        paramString2 = "调用的微博不存在 ";
        continue;
        paramString2 = "调用的微博不是当前用户发布的微博 ";
        continue;
        paramString2 = "不能转发自己的微博 ";
        continue;
        paramString2 = "不合法的微博 ";
        continue;
        paramString2 = "不合法的评论 ";
        continue;
        paramString2 = "该条评论不是当前登录用户发布的评论 ";
        continue;
        paramString2 = "不能给不是你粉丝的人发私信 ";
        continue;
        paramString2 = "不合法的私信 ";
        continue;
        paramString2 = "不是属于你的私信 ";
        continue;
        paramString2 = "source参数(appkey)缺失 ";
        continue;
        paramString2 = "格式不支持，仅仅支持XML或JSON格式 ";
        continue;
        paramString2 = "图片错误，请确保使用multipart上传了图片 ";
        continue;
        paramString2 = "私信发布超过上限 ";
        continue;
        paramString2 = "内容为空 ";
        continue;
        paramString2 = "微博id为空 ";
        continue;
        paramString2 = "ids参数为空 ";
        continue;
        paramString2 = "评论ID为空 ";
        continue;
        paramString2 = "用户不存在 ";
        continue;
        paramString2 = "ids过多，请参考API文档 ";
        continue;
        paramString2 = "不能发布相同的微博 ";
        continue;
        paramString2 = "请传递正确的目标用户uid或者screen name ";
        continue;
        paramString2 = "不支持的图片类型,支持的图片类型有JPG,GIF,PNG ";
        continue;
        paramString2 = "图片大小错误，上传的图片大小上限为5M ";
        continue;
        paramString2 = "参数错误，请参考API文档 ";
        continue;
        paramString2 = "不是对象所属者，没有操作权限 ";
        continue;
        paramString2 = "私信不存在 ";
        continue;
        paramString2 = "微博太长，请确认不超过140个字符 ";
        continue;
        paramString2 = "地理信息输入错误 ";
        continue;
        paramString2 = "IP限制，不能请求该资源 ";
        continue;
        paramString2 = "uid参数为空 ";
        continue;
        paramString2 = "token参数为空 ";
        continue;
        paramString2 = "domain参数错误 ";
        continue;
        paramString2 = "appkey参数缺失 ";
        continue;
        paramString2 = "verifier错误 ";
        continue;
        paramString2 = "标签参数为空 ";
        continue;
        paramString2 = "列表名太长，请确保输入的文本不超过10个字符";
        continue;
        paramString2 = "列表描述太长，请确保输入的文本不超过70个字符";
        continue;
        paramString2 = "列表不存在 ";
        continue;
        paramString2 = "权限不足，只有创建者有相关权限";
        continue;
        paramString2 = "参数错误，请参考API文档 ";
        continue;
        paramString2 = "插入失败，记录已存在 ";
        continue;
        paramString2 = "数据库错误，请联系系统管理员";
        continue;
        paramString2 = "列表名冲突 ";
        continue;
        paramString2 = "id列表太长了 ";
        continue;
        paramString2 = "urls是空的 ";
        continue;
        paramString2 = "urls太多了 ";
        continue;
        paramString2 = "ip是空值 ";
        continue;
        paramString2 = "url是空值 ";
        continue;
        paramString2 = "trend_name是空值";
        continue;
        paramString2 = "trend_id是空值 ";
        continue;
        paramString2 = "userid是空值 ";
        continue;
        paramString2 = "第三方应用访问api接口权限受限制";
        continue;
        paramString2 = "关系错误，user_id必须是你关注的用户";
        continue;
        paramString2 = "授权关系已经被删除 ";
        continue;
        paramString2 = "目前不支持私有分组 ";
        continue;
        paramString2 = "创建list失败 ";
        continue;
        paramString2 = "需要系统管理员的权限";
        continue;
        paramString2 = "含有非法词 ";
        continue;
        paramString2 = "无效分类!";
        continue;
        paramString2 = "无效状态码 ";
        continue;
        paramString2 = "目前只支持私有分组";
        continue;
        paramString2 = "没有进行身份验证";
        continue;
        paramString2 = "Oauth版本号错误";
        continue;
        paramString2 = " Oauth缺少必要的参数";
        continue;
        paramString2 = " Oauth参数被拒绝 ";
        continue;
        paramString2 = " Oauth时间戳不正确 ";
        continue;
        paramString2 = " nonce参数已经被使用 ";
        continue;
        paramString2 = " Oauth签名算法不支持 ";
        continue;
        paramString2 = " Oauth签名值不合法 ";
        continue;
        paramString2 = " Oauth consumer_key不存在";
        continue;
        paramString2 = " Oauth consumer_key不合法 ";
        continue;
        paramString2 = " Oauth Token已经被使用 ";
        continue;
        paramString2 = "Oauth Token已经过期 ";
        continue;
        paramString2 = "Oauth Token不合法 ";
        continue;
        paramString2 = "Oauth Token不合法 ";
        continue;
        paramString2 = "Oauth Pin码认证失败 ";
        continue;
        paramString2 = "没有开通微博 ";
        continue;
        paramString2 = "没有权限访问对应的资源";
        continue;
        paramString2 = "已拥有列表上限 ";
        continue;
        paramString2 = "认证失败 ";
        continue;
        paramString2 = "已经关注此用户 ";
        continue;
        paramString2 = "发布微博超过上限 ";
        continue;
        paramString2 = "发布评论超过上限 ";
        continue;
        paramString2 = "用户名密码认证超过请求限制 ";
        continue;
        paramString2 = "请求的HTTP METHOD不支持 ";
        continue;
        paramString2 = "发布微博超过上限 ";
        continue;
        paramString2 = "密码不正确 ";
        continue;
        paramString2 = "该资源需要appkey拥有更高级的授权 ";
        continue;
        paramString2 = "请求的资源不存在";
        continue;
        paramString2 = "服务器内部错误";
        continue;
        paramString2 = "微博接口API关闭或正在升级 ";
        continue;
        paramString2 = "服务端资源不可用";
      }
    }
    catch (Exception localException)
    {
      break label12;
    }
  }

  public int a(d paramd)
  {
    b("4161824071", "f4736bfcd787da4dfd225be6b10c0cd5");
    return a(new b(), paramd);
  }

  public int a(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, d paramd)
  {
    return a(a.a(paramString1, paramString2, paramString3, paramString4, paramString5), paramd);
  }

  public f a(int paramInt, String paramString)
  {
    f localf;
    if (paramString == null)
      localf = new f(3, -5, null, null);
    while (true)
    {
      return localf;
      com.netease.g.b.e("SinaService", paramString);
      localf = new f(3);
      localf.h = paramInt;
      try
      {
        String[] arrayOfString = new JSONObject(paramString).optString("error").split(":");
        if (arrayOfString.length == 3)
        {
          localf.i = arrayOfString[0];
          localf.j = arrayOfString[2];
        }
        localf.j = a(paramInt, localf.i, localf.j);
      }
      catch (JSONException localJSONException)
      {
        localf.h = -1;
        localf.j = f.a(-1);
        localJSONException.printStackTrace();
      }
    }
  }

  public String a(String paramString)
  {
    return "http://api.t.sina.com.cn" + paramString;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.b.g.c
 * JD-Core Version:    0.6.0
 */